home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / menuscripter / sources / msassubroutines.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.3 KB  |  41 lines

  1. // MSASSubroutines.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // Human Interface changes and GX Printing by Don Swatman
  6. // ©Apple Computer Inc 1996, all rights reserved.
  7.  
  8. #pragma once
  9.  
  10. #ifndef __MSGLOBALS__
  11. #include "MSGlobals.h"
  12. #endif
  13.  
  14. #include <OSA.h>
  15.  
  16.  
  17. OSErr    GetVolumeAndDirectory(void);
  18. OSErr    FSSpecLaunchApplication(const FSSpec *fileSpec,ProcessSerialNumber *PSN);
  19. void     SetUpScripts( void );
  20.  
  21. OSErr    LoadScriptFromResFile( FSSpec *theSpec, short theResID, OSAID *theScriptID );
  22. OSErr    LoadScriptFromResFileRef( short theRefNum, short theResID, OSAID *theScriptID );
  23. OSErr    StoreScriptToResFile( FSSpec *theFileRef, short theResID,
  24.                                 OSAID theScriptID, StringPtr theResName );
  25. OSErr    StoreScriptToResFileRef( short theFileRef, short theResID,
  26.                                 OSAID theScriptID, StringPtr theResName );
  27.  
  28. OSErr     CleanUpAEScripts(void);
  29. OSErr    ExecuteScript1(DPtr theDoc);
  30. OSErr    ExecuteScript2(DPtr theDoc);
  31. OSErr    ExecuteScript3(DPtr theDoc);
  32. OSErr    ExecuteScript4(DPtr theDoc);
  33.  
  34. OSErr    GetTextDescFromReply(AEDesc *aReply, AEDesc *textDesc);
  35. OSErr    GetSelection(AEDesc *textDesc);
  36. OSErr    SetSelection(AEDesc *textDesc);
  37.  
  38. void    EnableAEScriptItems(Boolean fEnable);
  39.  
  40. pascal Boolean    IdleProc(EventRecord *myEvent, long *sleep, RgnHandle *mouseRgn);
  41.